package me.keiwu.user.util.enums;

import lombok.Getter;

/**
 * Created by kei on 25/11/2017.
 */
public enum ItemType {

    SUIT(0),
    SINGLE(1),

    ;


    @Getter
    private int type;


    ItemType(int type) {
        this.type = type;
    }


    public static ItemType parse(int type) {
        for (ItemType itemType : ItemType.values()) {
            if (itemType.getType() == type) {
                return itemType;
            }
        }
        return null;
    }


}
